package com.atguigu.gmall.feign.item;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.vo.ItemDataVo;
import feign.Request;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author lfy
 * @Description
 * @create 2023-07-15 14:04
 */
@RequestMapping("/api/inner/item")
@FeignClient("service-item")
public interface SkuDetailFeignClient {

    @GetMapping("/detail/{skuId}")
    Result<ItemDataVo> skuDetail(@PathVariable Long skuId);
}
